﻿using GMS.Client.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GMS.Client.Domain
{
    public class RunService
    {
        private GameInfo gameInfo { get; set; }

        private MonitorService iMonitor { get; set; }

        public RunService(GameInfo gameInfo)
        {
            this.gameInfo = gameInfo;
        }

        public void Start()
        {
            Run();
        }

        private void Run()
        {
            iMonitor = new MonitorService(gameInfo);
            iMonitor.ReStart = new Action(Run);
            iMonitor.StartMonitor();
        }
    }
}
